import Vue from 'vue'
import Vuex from 'vuex'

import actions from './actions'
import mutations from './mutations'

Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
        //公共
        userinfo: {permission: {}},
        uploadprogress: 0
    },
    actions: actions,
    mutations: mutations
})
// // 初始状态
// const state = {
//     userinfo: {permission: {}},
//     uploadprogress: {}
// }
// export default new vuex.Store({
//     state,
//     actions,
//     mutations
// })
export default store
